/**
 * 
 */
package ywu.tools.timesync;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @author ywu
 */
public class TimeSyncBroadcastReceiver extends BroadcastReceiver
{

    /*
     * (non-Javadoc)
     * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
     */
    @Override
    public void onReceive(final Context context, final Intent intent)
    {
        if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED))
        {
            return;
        }

        // start sync service
        context.startService(new Intent(context, TimeSyncService.class));
    }

}
